import { Component, OnInit } from '@angular/core';

declare var form: any;

@Component({
  templateUrl: './org.organization.html'
})
export class OrgOrganizationComponent implements OnInit {
  fs: any = null;
  adminDic: any = null;
  constructor() {
    // 注册表单
    this.fs = new form.FormTreeService('organization', {
      orderObject: { order: 0 },
      keyField: 'id',
      pageSize: 1000,
      defaultObject: { leaf: false }
    });
    this.fs.loadData(true);
    this.adminDic = new form.DictionaryService('p_administrative');
  }

  ngOnInit(): void {

  }
}
